{%- set post = doc -%}
<div class="web-list-item blog-list-item">
	<div class="row">
		<div class="col-xs-12">
			<h1><a href="/{{ post.route }}">{{ post.title }}</a></h1>
			{% if post.cover_image %}
			<p>
				<img  class="blogpost-cover-img" src="{{ post.cover_image }}" alt="{{post.title}} - Cover Image">
			</p>
			{% endif %}
			<p class="post-description">{{ post.intro }}</p>

			<div>
				<div class="inline-block" style="vertical-align: top">
					<div class="avatar">
						<img itemprop="thumbnailUrl" src="{{ post.avatar or "/assets/frappe/images/default-avatar.png" }}" />
					</div>
				</div>
				<div class="inline-block" style="width: calc(100% - 100px)">
					<div class='text-muted'>
						<a href="/blog?blogger={{ post.blogger }}">{{ post.full_name }}</a>
					</div>
					<div class="text-muted small">
						{{ frappe.format_date(post.published_on) }}
						{% if post.comments %}
						<span style='display: inline-block; margin-left: 10px;'>
						<i class='octicon octicon-comment-discussion'></i> {{ post.comments }}
						</span>
						{% endif %}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
